﻿using System;
using System.Data;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;

namespace AnyOffice.general.email
{
    public partial class inbox_read_email : ModulePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.Page.IsPostBack)
            {
                this.ViewState["email_id"] = (Request.QueryString["email_id"] == null) ? "0" : Request.QueryString["email_id"].ToString();
                this.ViewState["box_id"] = (Request.QueryString["box_id"] != null) ? int.Parse(Request.QueryString["box_id"].ToString()) : 0;
                this.ViewState["page"] = (Request.QueryString["page"] == null) ? "1" : Request.QueryString["page"].ToString();
                this.ViewState["position"] = (Request.QueryString["position"] == null) ? "inbox" : Request.QueryString["position"].ToString();
            }
        } 

    }
}
